home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMHTMLOptionsCollection.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  131 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMHTMLOptionsCollection.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMHTMLOptionsCollection_h__
  6. #define __gen_nsIDOMHTMLOptionsCollection_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMHTMLElement_h__
  10. #include "nsIDOMHTMLElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMHTMLOptionsCollection */
  19. #define NS_IDOMHTMLOPTIONSCOLLECTION_IID_STR "bce0213c-f70f-488f-b93f-688acca55d63"
  20.  
  21. #define NS_IDOMHTMLOPTIONSCOLLECTION_IID \
  22.   {0xbce0213c, 0xf70f, 0x488f, \
  23.     { 0xb9, 0x3f, 0x68, 0x8a, 0xcc, 0xa5, 0x5d, 0x63 }}
  24.  
  25. /**
  26.  * The nsIDOMHTMLOptionsCollection interface is the interface to a
  27.  * collection of [X]HTML option elements.
  28.  *
  29.  * For more information on this interface please see
  30.  * http://www.w3.org/TR/DOM-Level-2-HTML/
  31.  *
  32.  * @status FROZEN
  33.  */
  34. class NS_NO_VTABLE nsIDOMHTMLOptionsCollection : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONSCOLLECTION_IID)
  38.  
  39.   /* attribute unsigned long length; */
  40.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  41.   NS_IMETHOD SetLength(PRUint32 aLength) = 0;
  42.  
  43.   /* nsIDOMNode item (in unsigned long index); */
  44.   NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
  45.  
  46.   /* nsIDOMNode namedItem (in DOMString name); */
  47.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION \
  53.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  54.   NS_IMETHOD SetLength(PRUint32 aLength); \
  55.   NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
  56.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval); 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  59. #define NS_FORWARD_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
  60.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  61.   NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
  62.   NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
  63.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to NamedItem(name, _retval); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
  67.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  68.   NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
  69.   NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  70.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } 
  71.  
  72. #if 0
  73. /* Use the code below as a template for the implementation class for this interface. */
  74.  
  75. /* Header file */
  76. class nsDOMHTMLOptionsCollection : public nsIDOMHTMLOptionsCollection
  77. {
  78. public:
  79.   NS_DECL_ISUPPORTS
  80.   NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION
  81.  
  82.   nsDOMHTMLOptionsCollection();
  83.  
  84. private:
  85.   ~nsDOMHTMLOptionsCollection();
  86.  
  87. protected:
  88.   /* additional members */
  89. };
  90.  
  91. /* Implementation file */
  92. NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionsCollection, nsIDOMHTMLOptionsCollection)
  93.  
  94. nsDOMHTMLOptionsCollection::nsDOMHTMLOptionsCollection()
  95. {
  96.   /* member initializers and constructor code */
  97. }
  98.  
  99. nsDOMHTMLOptionsCollection::~nsDOMHTMLOptionsCollection()
  100. {
  101.   /* destructor code */
  102. }
  103.  
  104. /* attribute unsigned long length; */
  105. NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetLength(PRUint32 *aLength)
  106. {
  107.     return NS_ERROR_NOT_IMPLEMENTED;
  108. }
  109. NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetLength(PRUint32 aLength)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* nsIDOMNode item (in unsigned long index); */
  115. NS_IMETHODIMP nsDOMHTMLOptionsCollection::Item(PRUint32 index, nsIDOMNode **_retval)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* nsIDOMNode namedItem (in DOMString name); */
  121. NS_IMETHODIMP nsDOMHTMLOptionsCollection::NamedItem(const nsAString & name, nsIDOMNode **_retval)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125.  
  126. /* End of implementation class template. */
  127. #endif
  128.  
  129.  
  130. #endif /* __gen_nsIDOMHTMLOptionsCollection_h__ */
  131.